from django.conf.urls import url
from .views import *


urlpatterns = [

    # 验证码生成接口
    url(r'^image_codes/(?P<uuid>[\w-]+)/$', ImageCountView.as_view()),

    # 短信验证码
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', SMSCodeView.as_view()),

    # [忘记密码] 账户校验
    url(r'^accounts/(?P<username>\w+)/sms/token/$', AccountVerifyView.as_view()),

    # [忘记密码] 发送短信
    url(r'^sms_codes/$', SendSMSToMobileView.as_view()),

    # [密码忘记] 短信验证码校验
    url(r'^accounts/(?P<username>\w+)/password/token/$', SMSVerifyView.as_view()),

    # [忘记密码] 两次密码输入校验
    url(r'^users/(?P<user_id>\d+)/password/$', SencondPasswordView.as_view()),
]

